#!/bin/bash

BIN=./socket_client

NUM=`ps -ef | grep ${BIN} | grep -v grep | wc -l`

if [ ${NUM} -eq 0 ]
then
	echo "program is not running"
	exit 0
fi

pid=`ps -ef | grep ${BIN} | grep -v grep | awk '{print $2}'` 

kill -9 ${pid}

echo "kill program pid: " ${pid}

